package com.example.novelstory.dao.lxy;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.novelstory.entity.Novel;
import com.example.novelstory.entity.Novel_author;
import java.util.List;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserAuthorDao extends BaseMapper<Novel_author> {
//    @Select("select * from novel_author")
//    public List<Novel_author> AllAuthor();
//    @Select("select * from novel")
//    public List<Novel> allNovel();
//    //查找作者（用户）
//    @Select("select * from novel_author where author_name=#{author}")
//    public List<Novel_author> findAuthor(String author);
//    //作者注册
//    @Insert("insert into novel_author(author_name) values(#{author})")
//    public int insertAnthor(String author);
    //作者发布书籍
//    @Insert("insert into novel(category,title,author_name) values(#{category,jdbcType=VARCHAR},#{title,jdbcType=VARCHAR},#{author,jdbcType=VARCHAR})")
//    public int insertBook(@Param("category")int category,@Param("title")String title,@Param("author")String author);
}
